
// px 转 rem
// 定义页面 1 rem 为 37.5px
$ratio: 375/10;

@function px2rem($px) {
	// 传入实际 px, 除以页面定义的 37.5px, 就是设定的 rem
	@return $px / $ratio + rem;
}

@mixin center {
    display: flex;
    justify-content: center;
    align-items: center;
}

@mixin left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

@mixin right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}